projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16bb524
)
Revert "Fix dired switch (that contain quotes and spaces) parsing"
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 22 Aug 2021 14:58:19 +0000
(16:58 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 22 Aug 2021 14:58:19 +0000
(16:58 +0200)
This reverts commit
04f723dec944eaa7b5e99373840a8bf920ba5fdd
.
The dired switches are documented to not follow shell syntax, but instead
uses a lisp-in-string-form kind of quoting.
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index ba362827ee7875990996b49e1b5ac7473cab2d53..e519a8ea8b6aff719f41230e313aeb2cd7746257 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-7501,7
+7501,7
@@
normally equivalent short `-D' option is just passed on to
(unless (equal switches "")
;; Split the switches at any spaces so we can
;; pass separate options as separate args.
- (split-string-
shell-command
switches)))
+ (split-string-
and-unquote
switches)))
;; Avoid lossage if FILE starts with `-'.
'("--")
(list file))))))